home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
red_cross_eru.swf
/
scripts
/
__Packages
/
gamebase
/
utils
/
ArrayUtils.as
next >
Wrap
Text File
|
2011-09-19
|
2KB
|
103 lines
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!e.f)
{
e.f = new g();
}
§§pop();
if(!e.f.h)
{
e.f.h = new g();
}
§§pop();
if(!e.f.h[§§constant(4)])
{
var _loc2_ = f.h[§§constant(4)] = function()
{
}[§§constant(5)];
f.h[§§constant(4)] = function()
{
}[§§constant(6)] = function(arr)
{
var _loc1_ = arr[§§constant(7)]();
var _loc4_ = new §\§\§constant(8)§();
while(_loc1_[§§constant(9)] > 0)
{
var _loc2_ = eval(§§constant(10))[§§constant(12)](eval(§§constant(10))[§§constant(11)]() * _loc1_[§§constant(9)]);
var _loc3_ = _loc1_[_loc2_];
_loc4_[§§constant(13)](_loc3_);
_loc1_[§§constant(14)](_loc2_,1);
}
return _loc4_;
};
f.h[§§constant(4)] = function()
{
}[§§constant(15)] = function(el, arr)
{
var _loc3_ = arr[§§constant(9)];
var _loc1_ = 0;
while(_loc1_ < _loc3_)
{
if(arr[_loc1_] == el)
{
arr[§§constant(14)](_loc1_,1);
return true;
}
_loc1_ = _loc1_ + 1;
}
return false;
};
f.h[§§constant(4)] = function()
{
}[§§constant(16)] = function(arr)
{
var _loc1_ = eval(§§constant(10))[§§constant(12)](eval(§§constant(10))[§§constant(11)]() * arr[§§constant(9)]);
return arr[_loc1_];
};
f.h[§§constant(4)] = function()
{
}[§§constant(17)] = function(arr)
{
var _loc1_ = eval(§§constant(10))[§§constant(12)](eval(§§constant(10))[§§constant(11)]() * arr[§§constant(9)]);
var _loc2_ = arr[_loc1_];
arr[§§constant(14)](_loc1_,1);
return _loc2_;
};
f.h[§§constant(4)] = function()
{
}[§§constant(18)] = function(arr, el)
{
var _loc2_ = 0;
var _loc3_ = arr[§§constant(9)];
var _loc1_ = 0;
while(_loc1_ < _loc3_)
{
if(arr[_loc1_] == el)
{
_loc2_ = _loc2_ + 1;
}
_loc1_ = _loc1_ + 1;
}
return _loc2_;
};
§§push(§§constant(19)(f.h[§§constant(4)][§§constant(5)],null,1));
}
§§pop();